#ifndef _PARTHUS_HS_CODEC_
#define _PARTHUS_HS_CODEC_

/*
 * MODULE NAME:    hs_codec.h
 * PROJECT CODE:   BlueStream
 * DESCRIPTION:    Leds for headset
 * MAINTAINER:     
 * DATE:           
 *
 * SOURCE CONTROL: $Id: hs_codec.h,v 1.4 2009/02/18 02:42:34 tianwq Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2008 RDA Inc.
 *     All rights reserved.
 *
 */

#include "sys_config.h"
#include "sys_types.h"

/*#define    HS_HINT_MUTE                    0x0000
#define    HS_HINT_ONE_HIGH_SHORT          0x0005
#define    HS_HINT_ONE_LOW_SHORT           0x000a
#define    HS_HINT_TWO_HIGH_SHORT          0x0505
#define    HS_HINT_TWO_LOW_SHORT           0x0a0a
#define    HS_HINT_ONE_HIGH_LONG           0x0055
#define    HS_HINT_ONE_LOW_LONG            0x00aa
#define    HS_HINT_TWO_HIGH_LONG           0x5455
#define    HS_HINT_TWO_LOW_LONG            0xa8aa
#define    HS_HINT_LOW_HIGH_LONG           0xaa55
#define    HS_HINT_HIGH_LOW_LONG           0x55aa*/

enum
{
    HS_HINT_MUTE,                        
    HS_HINT_ONE_HIGH_SHORT,          
    HS_HINT_ONE_LOW_SHORT,               
    HS_HINT_TWO_HIGH_SHORT,              
    HS_HINT_TWO_LOW_SHORT,               
    HS_HINT_ONE_HIGH_LONG,               
    HS_HINT_ONE_LOW_LONG,                
    HS_HINT_TWO_HIGH_LONG,               
    HS_HINT_TWO_LOW_LONG,                
    HS_HINT_LOW_HIGH_LONG,               
    HS_HINT_HIGH_LOW_LONG,
    HS_HINT_NOT_CONFIG,
    HS_HINT_PATTERN_COUNT
};

//#define    HS_HINT_CONNECT                 HS_HINT_ONE_HIGH_SHORT
//#define    HS_HINT_DISCONNECT              HS_HINT_TWO_HIGH_LONG
//#define    HS_HINT_RING                    HS_HINT_LOW_HIGH_LONG
//#define    HS_HINT_LOWPOWER                HS_HINT_TWO_HIGH_SHORT
//#define    HS_HINT_MAX_VOLUMN              HS_HINT_ONE_HIGH_SHORT
//#define    HS_HINT_POWERON                 HS_HINT_ONE_HIGH_SHORT
//#define    HS_HINT_DISCOVERABLE            HS_HINT_LOW_HIGH_LONG
//#define    HS_HINT_TERMAIL_CALL            HS_HINT_HIGH_LOW_LONG
//#define    HS_HINT_POWEROFF                HS_HINT_ONE_HIGH_LONG


void HSCodec_Initialise(void);

void HSCodec_Interrupter_Handler(void);

void HSCodec_Play_Hint(u_int16 hint, u_int16 repeat_tenths);
u_int8 HSCodec_Hint_Player_Handler(void);
u_int8 HSCodec_Get_Hint_Status(void);
void HSCodec_Kill_Hint(void);
void HSCodec_Config(u_int8 config);

#endif

